package com.hakim.wfb.customer.result.consume;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hkfs.fundamental.api.data.DataObjectBase;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by lenovo on 2017/7/18.
 */
public class ConsumeInterestView extends DataObjectBase {

    private static final long serialVersionUID = 1L;

    public Long id;

    /**
     * 消费规则Id
     */
    private String ruleId;
    /**
     * 收益日期
     */
    private Date interestDate;
    /**
     * 收益日息
     */
    private BigDecimal interest;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRuleId() {
        return ruleId;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Date getInterestDate() {
        return interestDate;
    }

    public void setInterestDate(Date interestDate) {
        this.interestDate = interestDate;
    }

    public BigDecimal getInterest() {
        return interest;
    }

    public void setInterest(BigDecimal interest) {
        this.interest = interest;
    }
}
